package com.mtsmda.bookjava7.chapter11.collectionEx.setEx;

import java.util.HashSet;

public class HashSetDemo {
	
	public static void main(String[] args) {
		HashSet<Integer> hashSet = new HashSet<>(10, .5F);
		System.out.println("hashSet.size(); " + hashSet.size());
		for(int i = 0; i < 10; i++){
			hashSet.add(i);
		}
		
		System.out.println(hashSet);
		
		System.out.println("hashSet.size(); " + hashSet.size());
	}
	
}